package com.seckill.mapper;

import com.seckill.domain.SeckillActivity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface SeckillActivityMapper {
    int insertSeckillActivity(SeckillActivity seckillActivity);
    java.util.List<com.seckill.domain.SeckillActivity> findAll();

    List<SeckillActivity> selectActivitiesToPreheat(LocalDateTime plusHours);

    SeckillActivity selectById(Long id);

    void updatePreheatStatus(@Param("id") Long id,@Param("i") int i);
}